//
//  SEGParkMenuListManager.h
//  SEGMenus
//
//  Created by 乔杨 on 2020/12/2.
//

#import <Foundation/Foundation.h>

#import "SEGMenuListModel.h"

#import "SEGPgcManager.h"

/// 菜单页面block
typedef void(^park_menu_block)(BOOL hasAd, BOOL hasCommonMenu);
 
@interface SEGParkMenuListManager : NSObject

/// 【类属性】底部tabBar数据
@property (nonatomic, copy, class) NSArray<SEGMenuListModel *> *menuListTab;
/// 页面菜单数据
@property (nonatomic, copy) NSArray<NSArray<SEGMenuListModel *> *> *menuListDataArr;
/// PGCManager
@property (nonatomic, strong) SEGPgcManager *pgcManager;

#pragma mark - tabBar菜单
/// 请求菜单底部tabBar
/// @param completion 回调
+ (void)park_requestNetworkMenuForTabBarCompletion:(void(^)(BOOL isSuccessed, id result, NSString *codeType, NSString *errorMessage))completion;
 
#pragma mark - 页面菜单
/// 请求本地缓存菜单页面数据
/// @param action 页面编码
/// @param settingsId  导航菜单id
/// @param type 广告类型
/// @param completion 回调
- (void)park_requestLocalMenuForPageWithAction:(NSString *)action settingsId:(NSString *)settingsId positionType:(SEGAdvlistType)type completion:(park_menu_block)completion;

/// 请求网络菜单页面数据
/// @param menuSid 页面Id
/// @param action 页面编码
/// @param settingsId  导航菜单id
/// @param targetVC 控制器
/// @param type 广告类型
/// @param completion 回调
- (void)park_requestNetworkMenuForPageWithMenuSid:(NSString *)menuSid action:(NSString *)action settingsId:(NSString *)settingsId targetVC:(UIViewController *)targetVC positionType:(SEGAdvlistType)type completion:(park_menu_block)completion;

#pragma mark - 查询菜单数据中是否有H5缴费菜单
/// 查询菜单数据中是否有H5缴费菜单
- (SEGMenuListModel *)park_getWebBillPayURL;

@end
 
